bug fix image upload from url