Own version for 90 degree image rotation done