added runtime component for image encoding