Removing image from gallery can leave image parameters behind