Fixed folder selecting inconsistency,

Prevent Demo app from crashing if what you upload is not an image