Fixes transparent transitions
Fixes wrong height image calculation
merge fixes by jonasman