Minor refactor of default_image helper