php page download as jpeg bug fixed