incorrect method for setting image format
correct fix for fallback image issues. Always provide at least a width / height, and never create a fallback colour square with zero-dims
do not send headers unless image can be rendered