Add check for file exists in image manager