I = imread ( 'casablanca.png' );

fprintf ( 'casablanca\n' );
imshow ( I );
pause

fprintf ( 'Ingrid Bergman\n' );
imshow ( I(1:100,361:460) );
pause

fprintf ( 'Humphrey Bogart\n' );
imshow ( I(1:100,171:270) );
pause

fprintf ( 'Dooley Wilson\n' );
imshow ( I(141:240,61:160) );
pause
%
I2 = I;
ingrid = I(1:100,361:460);
I2(1:100,161:260) = ingrid;
I2(141:240,61:160) = ingrid(1:100,100:-1:1);
fprintf ( 'Three Ingrids\n' );
imshow ( I2 );
print ( '-djpeg', 'bergman3.jpg' )
