fill_bits function fills specified number of bits from the bottom

add source file and header file
fix wrong argument type of fill_bits function

also, change to include stdint.h to use the types
implement encode-as-PNG-format function named encode_png