[PATCH] Fixed tests for image handling.