Fix php4
Fix image resize