An existence result for the electropainting problem