BUG: image dimension issues