Updated 'static' image endpoint to serve any image type