Implemented inline preview for images