Working on thumbnail creation. Incomplete