Make deviceStorage mock more generic to accept any kind of file

Right now the files in device storage default to png extension and mimetype, which is hardcoded. This patch makes the mock more generic in case the developer wants to have different kinds of files in there.