update image to percentage size