opening picture file cause memory leak?