added image class, mysqli class is now used model