Bugfix: Only resize if dimentions are bigger than requested (David Revoy's improvement)