Issue #976096: Fixed The selected image handling toolkit imageapi_optimize() can not correctly process imageapi_optimize_image_overlay().