Fixes for rewrite issues
replaces rewrite_get_album_image

This function can be much simplified now that we are handling the
rewrite rules in PHP