fixed: image management and frame extraction