Fix error processing image thumbnail