added subimage rotation