fix bug in media_image method in snippets.class