API: Bugfix for saving images from canvas in backend