fixes bug with trying to add the null image to image arraylist
fixes bug where image extension is added twice to filename