move tests to root dir
fix copy_block bounds check
add PPM image save