Image processing update

Bug fixes
Make so doesn’t register last trial