modified the control of the galler, modified urls to have explicit url for media only on Debug mode, modified index view to return only 50 images