add index to image table to query by type

this speeds up Special:MIMESearch and allows
queries for all files of one type.

Change-Id: I85715b0553a771ab88d9763ba921923551988bd0
Merge "add index to image table to query by type"