Now saving images in onPreviewFrame