Resolved bugs when uploading image using OpenStack