On-demand content aware image processing API