Actually, I have the exact same issue on a recently installed wordpress 3.8
As JensM said, whatever you type for the image size is replaced “sizesize_name”
Also the buttons labels are “deleteImage”, “validateButton” so this seems weird and might be a clue…