Add console logging

Some folders try to add non-images to the gallery - need to fix this bug