Image processing API