Fix upload images issue