image: Avoid snprintf.

Fixes MSVC build failure, as MSVC only defined _snprintf.