Fixed convert to images bugs.