Support bytes and megabytes in the Jpg class.