Moved code for images and atribution.
Added many events.