fix rotateImage by adding missing px to string