Dynamically resize image card images. Fixes #5.