ignore bad input, make sure thumbnails are centered properly