Refactored dumpPage method
Fixed pageDump compile errors
Added a check image spec without files