forgot to free image memory