enforce reading jpg's only