Fixing the image dao.