added rotated masked image module