fixed image scaling and favorites functionality