Added float cast to remove devide by zero error on lanscape pictures