added image upload preview and loadClass method in appModel