Correct image extension buffer size