Support for 24bits write
Added size field check
Merge pull request #2 from notthetup/master

Add 24bit write support