Fixed client side image resizing