php added for pic reading
php changes to load img