Bugfix in maxrects algorithm where packing rotated images was not working.