Fix bug on upload images