This commit fixes issue with progressive image downloading.
But this causes another issue - ImageIO throws a lot of error messages
to log.
Don't know how to prevent him from spam =(