made images download and display with the appropriate extension. fixed image folder hierarchy issues