add setResolution() and loadFile() method