Image auto-rotate issue - Imagick Fix (improvement)

Improvement for small images

previous version: https://github.com/dev-101/Osclass/commit/d715217fc87eafc94753d6389dab28d9c8bf5d56