improved upload image feature detect