upload images to mysql and display by ids