Update image.php

Replace 3 separate methods (isCubic, isPortrait, isLandscape) by one generic method getOrientation.