Moved loading of image metadata to service