Added client side for image saving