building image if it doesn't exist
merged