Little changes

- Preventing from multi-compiling
- Static struct img imginfo
- Portable copy function duplicate() (not finished yet)