Is there any way to limit the accepted file formats? Right now it is accepting pngs even if the imgFormat is set only to jpg, and viceversa.