Adds more image methods; bugfixes.