Beginning to work on MYSQL part of image class