fixed scaling for canvas images