added entry dimensions as keys; refactored image resizing