bugfix for horizontal picture