Use detected file format for image scaler
Make decisions based on what Go's image.DecodeConfig
tells us the image format actually is instead of using the data sent from the Rails app.
More details why we decided to switch in #319
Edited by Aleksei Lipniagov