memory usage problem, half fixed picture resizing