update usage of drawImage, shear, etc. in HSM unit tests
(#612)