correct calculation of image dimensions for child articles, and some other small bug fixes