Fixed page generation error using webpage name instead of filename for images