Getting 502 Bad Gateway Error on Image Picker Widget