Fixed simple scaled image bug

The scaled image should be sent to analyzeImage. Otherwise large images kill it.