component.popup: update behaviour when picture is bigger than window