crop and compression added client side