Added optional handling for image upload

Signed-off-by: Froilan <froilan.co@orangeandbronze.com>