Move verify because it causes problems with resizing an image