server: implement crop and resize http handlers