fix objects order in media/image template snippet