heat: use str_replace to get image name

Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>