added a check for img/jpg filetype in the inbox controller