Added ability to preview images