Added support for getting images and videos by various modes