fixed non-byte image bugs, can use floats now