Image and js update.
Update to functions php.
Changes made by paul, this time correct.
Merge paul changes with changes of dirk and breyten.