clean up gallery image presentation