Added open image functionality.