Added filter in IndexController to get only image files