add is_portrait and is_landscape methods on image