server side cropping and saving