Content aware image resize library