The Cost of Dynamism in Static Languages for Image Processing