image being created hit detection not working