Resize photos on a client side