fixed the rotatable image bug