changed img_id data type to long