changed fullsize image load to query db for filename