Fixed image library bugs.
Update lines of code count.