Fix a DDOS when a user attemped to request a huge image, thus consuming all memory on the host.