I'm just in the middle of trying to re-factor the code to make it useful for other features, so can't offer a quick fix at the moment.
However couple of things that might have an impact with 1:
If you have uploaded the cover image to your own media library the plugin may display both the local image and the Amazon image.
I've noticed that if the product has a 'Look Inside' option then I get two images (frustratingly the look inside one is first and only supports a low resolution small image, so usually is picked by default by the plugin!).
Which ASIN was giving the problem?
It would be relatively simple to filter if the URLs are indeed identical, in the function '
alx_images_process_images' just change the last line to:
2. The version you have will change the
%IMAGE% keyword in the sub-template to the appropriate THUMB url _only_ if it is being processed for the
%THUMBS% keyword. However if you want to expand both
%THUMB% in the same sub-template then you could try changing the code in the
Change the line:
$output .= str_replace( array('%IMAGE%', '%IMAGE_INDEX%'), array($image,$index), $input);
$output .= str_replace( array('%IMAGE%', '%THUMB%', '%IMAGE_INDEX%'), array($image,$data[$country]['thumb'][$index], $index), $input);
Note: I haven't tested either of these changes!