remove last comma for loading image