This is the way that is generally supported at the moment. Either by storing the files in a DB or exposing them via the WebDev module.
You can also put the images in <Install Dir>\Inductive Automation\Ignition\webserver\webapps\main
and then pull them in via bindings etc. See here for more information.