add resize and rotate