track images in mysql