Painless image picker with orientation, resizing, clipping, masking and caching of images