Fixes empty image tag, removes php warnings for HEADER_WIDTH

Fixes Issue #490