Fixes dimension calculation using the calculated dimension of the previous image edit rather than the original image dimensions.
Implements a basic dimension calculation for the DIMS rotate command.