Added escape key support to close current image.