image part of database works