changes done by dev20 for imageresize functionality