Corrected sprite scaling and trimming