Added media widget tests and sorted images in media widget