cleared some whitespace, made an extra warning  for the get database images and made it so it will not  overwrite excisting images with the same name.