Added image extension library

now works with other image formats besides bmp (jpg,png,etc.)