add in-space solution for rotate-image problem