quicker script execution and better image page detection