imagescale is a thing in php 5.5+ so this /should/ work.