Tests: Written tests for issue.
Added configurable option for image dialog.