Added support for different formats

Support for:
- jpeg
- png
- gif