Added support for JPEG and GIF file types, and 404 response