why does image return 'medium' if the medium image is never generated?