support for client side image resizing