cleaned up image testing