Simplified image replacement, somewhat.  Added image replacement for > 1024px.